function e() {
    var e = getCurrentPages();
    e[e.length - 1].setData({
        isLoginModalShown: !0
    });
}

Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = function(n, r) {
    var a = [ t.default.TOKEN_INVALID, t.default.TOKEN_EXPIRY ].includes(n);
    return a && e(), a;
}, exports.askForSignin = function(t) {
    var n = !getApp().globalData.tokens.accesstoken;
    return n && e(), n;
};

var t = function(e) {
    return e && e.__esModule ? e : {
        default: e
    };
}(require("../../utils/api-code"));